<div align="right">
</div>
<table width="744" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td class="back1">&nbsp;</td>
        <td align="center" class="back2"><div class="droid" id="judul-bar">Student Feedback Result | Term-<?php echo $no_term." ".$tahun_term?></div></td>
        <td class="back3">&nbsp;</td>
    </tr>
    <tr>
        <td class="back4">&nbsp;</td>
        <td id="warnaback">
            <div class="bingkai">
                <!-- mulai menu -->
                <div id="menuZ">
                    <img src="<?php echo $this->session->userdata('foto') ?>"/>
                </div>
                <div id="menuX">
                    <div id="userX"> 
                        Hi, <b><?php echo $this->session->userdata('nama'); ?></b> 
                        | <a href="<?php echo base_url() . 'feedback_result/feedback_result_con/logout' ?>">Logout</a>
                    </div>
                    <div class="clear"></div>
			<div class="menuY"><a href="<?php echo base_url() . 'polling/polling_con/' ?>">Hasil Poll</a></div>
                    <div class="menuY"><a href="<?php echo base_url() . 'feedback_result/feedback_result_con/start_home' ?>">Hasil SF</a></div>
                    
                    <div class="clear"></div>
                </div>
                <!-- selesai menu -->
                <!-- mulai kontent -->
                <div id="kontent" class="yeah">
                    <!-- konten kiri -->
                    <div id="kontentkiri">
                        <!-- start tabel all course kiri -->
                        <table border="0" cellpadding="0" cellspacing="0"  class="" id="course">
                            <tr>
                                <td colspan="2" valign="top" class="yoi">
                                    <div class="droid yoi2">All Course
					</div>
                                </td>
</tr><tr>
                                <td colspan="2" valign="top" class="yoir">
					<a class="uganda ugondo" href="<?php echo base_url().'feedback_result/feedback_result_con/start_home/1'?>">Alphabetically</a>
					<a class="uganda" href="<?php echo base_url().'feedback_result/feedback_result_con/start_home/2'?>">Highest Score</a>
					</div>
                                </td>
                            </tr>
                            <?php for ($i = 0; $i < $jumlah_course; $i++) { ?>
                                <tr>
                                    <td valign="top" class="yoi">
                                        <div class="yoi5 droid"><a href="<?php echo base_url() . 'feedback_result/feedback_result_con/calculate_course/' . $course[$i]['KODE_PELATIHAN'] . '/' . $course[$i]['ANGKATAN'].'/1/' ?>"><?php echo $course[$i]['KODE_PELATIHAN'] ?>-<?php echo $course[$i]['ANGKATAN'] ?></a></div>
                                        <div class="kecil droid"><?php echo $course[$i]['NAMA_PELATIHAN'] ?></div>
                                    </td>
                                    <td valign="top" class="yoi3 droid"><?php echo $overal_course[$i] ?></td>
                                </tr>
                            <?php } ?>

                        </table>
                        <!-- end tabel all course kiri -->
                    </div>
                    <!-- kontent kanan -->
                    <div id="kontentkanan">
                        <!-- start tabel top 8 course -->
                        <table border="0" cellpadding="10" cellspacing="0">
                            <tr>
                                <td valign="top">
                                    <div class="droid yoi yoi2">Top 8 Course</div>
                                </td>
                            </tr>
                            <tr>
                                <td valign="top">
                                    <!-- start tabel grafik course -->
                                    <table border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td><span id="grafik" class="inlinebar"><?php $r = 0;
                            while (($r < $jumlah_course) && ($r < 8)) {
                                echo $overal_urut[$r]['NILAI'];
                                $r+=1;
                                if (($r < $jumlah_course) && ($r < 8)) {
                                    echo ",";
                                }
                            } ?></span></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <table class="mangga droid" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <?php $r = 0;
                                                        while (($r < $jumlah_course) && ($r < 8)) {
                                                            echo "<td>" . $overal_urut[$r]['KODE_PELATIHAN'] . "-".$overal_urut[$r]['ANGKATAN']."</td>";
                                                            $r+=1;
                                                        } ?>
                                                    </tr>
                                                    <tr>
                                                        <?php $r = 0;
                                                        while (($r < $jumlah_course) && ($r < 8)) {
                                                            echo "<td>" . $overal_urut[$r]['NILAI'] . "</td>";
                                                            $r+=1;
                                                        } ?>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                    <!-- end tabel grafik course -->
                                </td>
                            </tr>
                        </table>
                        <!-- end tabel grafik course -->

                        <!--start tabel top instruktur and asistant----->
                        <table border="0" cellspacing="0" cellpadding="10">
                            <tr>
                                <td valign="top">
                                    <!---start tabel top instruktur---->
									
                                    <table border="0" cellpadding="0" cellspacing="0" class="avatar dodol">
                                        <tr>
                                            <td valign="top">
                                                <div class="droid yoi yoi2">Top 8 Instructor</div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td valign="top">
                                                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="komentar">
                                                    <?php 
                                                        $r = 0;
                                                    while (($r < $jumlah_course) && ($r < 8)) {
                                                    if(!empty($instruktur_urut[$r])) {
                                                        if($instruktur_urut[$r]['FOTO']=='') $instruktur_urut[$r]['FOTO'] = base_url().'images/defpic.gif';
                                                        echo '
                                                        <tr>
                                                          <td><img src="' . $instruktur_urut[$r]['FOTO'] . '" /></td>
                                                          <td><span class="cen">' . $instruktur_urut[$r]['NAMA'] . '</span> ' . $instruktur_urut[$r]['NILAI'] . ' <br/> ' . $instruktur_urut[$r]['KODE_PELATIHAN'] . '-' . $instruktur_urut[$r]['ANGKATAN'] . '</td>
                                                        </tr>
                                                        ';
                                                    } 
                                                        $r+=1;
                                                    }?>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
									</div>
                                    <!-- end tabel top instruktur -->
                                </td>
                                <td valign="top">
                                    <!---start tabel top asistant---->
									
                                    <table border="0" cellpadding="0" cellspacing="0" class="avatar dodol">
                                        <tr>
                                            <td valign="top">
                                                <div class="droid yoi yoi2">Top 8 Asisstant</div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td valign="top">
                                                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="komentar">
                                                    <?php $r = 0;
                                                    while (($r < $jumlah_course) && ($r < 8)) {
                                                        if(!empty($asisten_urut[$r])){
                                                            if($asisten_urut[$r]['FOTO']=='') $asisten_urut[$r]['FOTO'] = base_url().'images/defpic.gif';
                                                            echo '
                                                            <tr>
                                                            <td><img src="' . $asisten_urut[$r]['FOTO'] . '" /></td>
                                                            <td><span class="cen">' . $asisten_urut[$r]['NAMA'] . '</span> ' . $asisten_urut[$r]['NILAI'] . ' <br/> ' . $asisten_urut[$r]['KODE_PELATIHAN'] . '-' . $asisten_urut[$r]['ANGKATAN'] . '</td>
                                                            </tr>
                                                            ';
                                                        }
                                                        $r+=1;
                                                    } ?>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
									
                                    <!---end tabel top asistant---->
                                </td>
                            </tr>
                        </table>
                        <!----end tabel top instruktur and asistant--->
				<table width="100%" border="0" cellpadding="0" cellspacing="0" id="latest">
					<tr>
						<td valign="top" colspan="2"><div class="droid yoi yoi2">Latest Comment</div></td>
					</tr>
					<tr>
						<td class="comheight" colspan="2"></td>
					</tr>
                                        <?php
                                            if(!empty($comment)){
                                                for($i=0;$i<count($comment);$i++){
                                                    if($comment[$i]['FOTO']=='') $comment[$i]['FOTO'] = base_url().'images/defpic.gif';
                                                    echo '
                <tr>
                        <td><img src="'.$comment[$i]['FOTO'].'" /></td>
                        <td class="latkomen" >'.$comment[$i]['NAMA'].' <a href="'.base_url().'feedback_result/feedback_result_con/calculate_course/'.$comment[$i]['KODE_PELATIHAN'].'/'.$comment[$i]['ANGKATAN'].'/'.$comment[$i]['NOMOR_SESI'].'" class="idcomen">commented on '.$comment[$i]['KODE_PELATIHAN'].'-'.$comment[$i]['ANGKATAN'].' Sesi-'.$comment[$i]['NOMOR_SESI'].':</a> "'.$comment[$i]['KOMENTAR'].'"</td>		  
                </tr>
                                                        ';
                                                }
                                            }
                                        ?>
				</table>
                    </div>
                    <div class="clear"></div>
                </div>
                <!-- selesai kontent -->
                <!----->
                <div id="footerX" class="">Copyright ©2011 CIC Team | Credits</div>
            </div>
        </td>
        <td class="back5">&nbsp;</td>
    </tr>
    <tr>
        <td class="back6">&nbsp;</td>
        <td class="back7">&nbsp;</td>
        <td class="back8">&nbsp;</td>
    </tr>
</table>